<template>
  <div class="menu-button" @click="toggleClick">
    <div class="menu-button-wrapper">
      <img src="@/assets/images/icon/icon-菜单@2x.png">
      <span>菜单</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MenuButton',
  methods: {
    toggleClick() {
      this.$emit('toggleClick')
    }
  }
}
</script>

<style lang="scss" scoped>
  .menu-button{
    cursor: pointer;
    display:table-cell;
    vertical-align:middle;
    text-align: center;
    border-radius: 0 12px 0 0;
    background-color: #257BE2;
    color: #fff;
    width: 80px;
    height: 32px;
  .menu-button-wrapper{
    display: inline-block;
    // padding-top:1rem;

  img {
    height: 13px;
    width: 13px;
  }
  span {
    display: inline-block;
    font-size: 14px;

    margin-left: 8px;

  }
  }
  }
</style>
